import java.awt.Color;
import java.awt.EventQueue;
import java.awt.GridLayout;
import java.io.IOException;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;


public class TrackModelPane {

	public static String status = "Bundle: ";
	public static JLabel lblstatus;
	private JFrame frame;

	/**
	 * Launch the application.
	 * @throws IOException
	 * @throws InterruptedException
	 */
	public static void main(String[] args) throws IOException, InterruptedException {
		/*
		TrackModel tm = new TrackModel();
		tm.build("red.csv");
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					TrackModelPane window = new TrackModelPane();
					window.frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
		tm.receive(new TMBundle());
		*/
	}

	/**
	 * Create the application.
	 */
	public TrackModelPane() {
		initialize();
	}

	/**
	 * Initialize the contents of the frame.
	 */
	private void initialize() {
		frame = new JFrame("Track Model");
		frame.setBounds(0, 470, 1135, 150);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame.getContentPane().setLayout(new GridLayout(3, 0, 0, 0));

		JPanel statusPanel = new JPanel();
		frame.getContentPane().add(statusPanel);

		lblstatus = new JLabel(status);
		statusPanel.add(lblstatus);

		JPanel layoutPanel = new JPanel();
		frame.getContentPane().add(layoutPanel);
		layoutPanel.setLayout(new GridLayout(0, 50, 0, 2));

		JButton button = new JButton("");
		button.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button);

		JButton button_1 = new JButton("");
		button_1.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_1);

		JButton button_2 = new JButton("");
		button_2.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_2);

		JButton button_3 = new JButton("");
		button_3.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_3);

		JButton button_4 = new JButton("");
		button_4.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_4);

		JButton button_5 = new JButton("");
		button_5.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_5);

		JButton button_6 = new JButton("");
		button_6.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_6);

		JButton button_7 = new JButton("");
		button_7.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_7);

		JButton button_8 = new JButton("");
		button_8.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_8);

		JButton button_9 = new JButton("");
		button_9.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_9);

		JButton button_10 = new JButton("");
		button_10.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_10);

		JButton button_11 = new JButton("");
		button_11.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_11);

		JButton button_12 = new JButton("");
		button_12.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_12);

		JButton button_13 = new JButton("");
		button_13.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_13);

		JButton button_14 = new JButton("");
		button_14.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_14);

		JButton button_15 = new JButton("");
		button_15.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_15);

		JButton button_16 = new JButton("");
		button_16.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_16);

		JButton button_17 = new JButton("");
		button_17.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_17);

		JButton button_18 = new JButton("");
		button_18.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_18);

		JButton button_19 = new JButton("");
		button_19.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_19);

		JButton button_20 = new JButton("");
		button_20.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_20);

		JButton button_21 = new JButton("");
		button_21.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_21);

		JButton button_22 = new JButton("");
		button_22.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_22);

		JButton button_23 = new JButton("");
		button_23.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_23);

		JButton button_24 = new JButton("");
		button_24.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_24);

		JButton button_25 = new JButton("");
		button_25.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_25);

		JButton button_26 = new JButton("");
		button_26.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_26);

		JButton button_27 = new JButton("");
		button_27.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_27);

		JButton button_28 = new JButton("");
		button_28.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_28);

		JButton button_29 = new JButton("");
		button_29.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_29);

		JButton button_30 = new JButton("");
		button_30.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_30);

		JButton button_31 = new JButton("");
		button_31.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_31);

		JButton button_32 = new JButton("");
		button_32.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_32);

		JButton button_33 = new JButton("");
		button_33.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_33);

		JButton button_34 = new JButton("");
		button_34.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_34);

		JButton button_35 = new JButton("");
		button_35.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_35);

		JButton button_36 = new JButton("");
		button_36.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_36);

		JButton button_37 = new JButton("");
		button_37.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_37);

		JButton button_38 = new JButton("");
		button_38.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_38);

		JButton button_39 = new JButton("");
		button_39.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_39);

		JButton button_40 = new JButton("");
		button_40.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_40);

		JButton button_41 = new JButton("");
		button_41.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_41);

		JButton button_42 = new JButton("");
		button_42.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_42);

		JButton button_43 = new JButton("");
		button_43.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_43);

		JButton button_44 = new JButton("");
		button_44.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_44);

		JButton button_45 = new JButton("");
		button_45.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_45);

		JButton button_46 = new JButton("");
		button_46.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_46);

		JButton button_47 = new JButton("");
		button_47.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_47);

		JButton button_48 = new JButton("");
		button_48.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_48);

		JButton button_49 = new JButton("");
		button_49.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_49);

		JButton button_50 = new JButton("");
		button_50.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_50);

		JButton button_51 = new JButton("");
		button_51.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_51);

		JButton button_52 = new JButton("");
		button_52.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_52);

		JButton button_53 = new JButton("");
		button_53.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_53);

		JButton button_54 = new JButton("");
		button_54.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_54);

		JButton button_55 = new JButton("");
		button_55.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_55);

		JButton button_56 = new JButton("");
		button_56.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_56);

		JButton button_57 = new JButton("");
		button_57.setEnabled(false);
		layoutPanel.add(button_57);

		JButton button_58 = new JButton("");
		button_58.setEnabled(false);
		layoutPanel.add(button_58);

		JButton button_59 = new JButton("");
		button_59.setEnabled(false);
		layoutPanel.add(button_59);

		JButton button_60 = new JButton("");
		button_60.setEnabled(false);
		layoutPanel.add(button_60);

		JButton button_61 = new JButton("");
		button_61.setEnabled(false);
		layoutPanel.add(button_61);

		JButton button_62 = new JButton("");
		button_62.setEnabled(false);
		layoutPanel.add(button_62);

		JButton button_63 = new JButton("");
		button_63.setEnabled(false);
		layoutPanel.add(button_63);

		JButton button_64 = new JButton("");
		button_64.setEnabled(false);
		layoutPanel.add(button_64);

		JButton button_65 = new JButton("");
		button_65.setEnabled(false);
		layoutPanel.add(button_65);

		JButton button_66 = new JButton("");
		button_66.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_66);

		JButton button_67 = new JButton("");
		button_67.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_67);

		JButton button_68 = new JButton("");
		button_68.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_68);

		JButton button_69 = new JButton("");
		button_69.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_69);

		JButton button_70 = new JButton("");
		button_70.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_70);

		JButton button_71 = new JButton("");
		button_71.setEnabled(false);
		layoutPanel.add(button_71);

		JButton button_72 = new JButton("");
		button_72.setEnabled(false);
		layoutPanel.add(button_72);

		JButton button_73 = new JButton("");
		button_73.setEnabled(false);
		layoutPanel.add(button_73);

		JButton button_74 = new JButton("");
		button_74.setEnabled(false);
		layoutPanel.add(button_74);

		JButton button_75 = new JButton("");
		button_75.setEnabled(false);
		layoutPanel.add(button_75);

		JButton button_76 = new JButton("");
		button_76.setEnabled(false);
		layoutPanel.add(button_76);

		JButton button_77 = new JButton("");
		button_77.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_77);

		JButton button_78 = new JButton("");
		button_78.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_78);

		JButton button_79 = new JButton("");
		button_79.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_79);

		JButton button_80 = new JButton("");
		button_80.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_80);

		JButton button_81 = new JButton("");
		button_81.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_81);

		JButton button_82 = new JButton("");
		button_82.setEnabled(false);
		layoutPanel.add(button_82);

		JButton button_83 = new JButton("");
		button_83.setEnabled(false);
		layoutPanel.add(button_83);

		JButton button_84 = new JButton("");
		button_84.setEnabled(false);
		layoutPanel.add(button_84);

		JButton button_85 = new JButton("");
		button_85.setEnabled(false);
		layoutPanel.add(button_85);

		JButton button_86 = new JButton("");
		button_86.setEnabled(false);
		layoutPanel.add(button_86);

		JButton button_87 = new JButton("");
		button_87.setEnabled(false);
		layoutPanel.add(button_87);

		JButton button_88 = new JButton("");
		button_88.setEnabled(false);
		layoutPanel.add(button_88);

		JButton button_89 = new JButton("");
		button_89.setEnabled(false);
		layoutPanel.add(button_89);

		JButton button_90 = new JButton("");
		button_90.setEnabled(false);
		layoutPanel.add(button_90);

		JButton button_91 = new JButton("");
		button_91.setEnabled(false);
		layoutPanel.add(button_91);

		JButton button_92 = new JButton("");
		button_92.setEnabled(false);
		layoutPanel.add(button_92);

		JButton button_93 = new JButton("");
		button_93.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_93);

		JButton button_94 = new JButton("");
		button_94.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_94);

		JButton button_95 = new JButton("");
		button_95.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_95);

		JButton button_96 = new JButton("");
		button_96.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_96);

		JButton button_97 = new JButton("");
		button_97.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_97);

		JButton button_98 = new JButton("");
		button_98.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_98);

		JButton button_99 = new JButton("");
		button_99.setBackground(new Color(0, 0, 153));
		layoutPanel.add(button_99);

		frame.setVisible(true);

	}

}
